package com.cn.wanxi.dao;

import com.cn.wanxi.model.ProductTypeModel;

import java.util.List;
import java.util.Map;

public interface IProductTypeDao {

    int addProductType(ProductTypeModel productType);

    int deleteProductType(int id);

    int updateProductType(ProductTypeModel productType);

    List<ProductTypeModel> getProductTypeList();

    ProductTypeModel getProductType(int id);

    List<ProductTypeModel> getProductTypes(Map<String, Object> map);

    int updateShow(ProductTypeModel productType);

    long getProductTypeCount(Map<String, Object> map);

    List<ProductTypeModel> getProductTypeListByRedis();

    void setProductTypeInRedis(List<ProductTypeModel> list);
}
